/**
 * @author xinjie.txt
 * @time: 2020年7月9日 下午6:36:01
 */
package com.jiepu.exercise.primary.chapter5.exercise5;

/**
 * @Description:
 * @author xinjie.txt
 */
public class SavingAccount extends Account {

	private double rate; // 利率

	/**
	 * @return the rate
	 */
	public double getRate() {
		return rate;
	}

	/**
	 * @param rate
	 *            the rate to set
	 */
	public void setRate(double rate) {
		this.rate = rate;
	}

	/**
	 * 
	 */
	public SavingAccount() {
		super();
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param rate
	 */
	public SavingAccount(double rate) {
		super();
		this.rate = rate;
	}

	public SavingAccount(double balance, double rate) {
		super(balance);
		this.rate = rate;
	}

}
